<#include "/common/spring.ftl" />
<#include "/common/reference.ftl"/>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<meta name="Keywords" content="信贷开源代码演示系统"/>
	<meta name="description" content="信贷开源代码演示系统"/>
	<title>信贷开源代码演示系统</title>
	<link rel="shortcut icon" href="http://www.suning.com/favicon.ico" type="image/x-icon">
	
	
</head>
<body>
<div class="xd-hr">
	<span>sql生成器</span>
</div>
<br/>
<form action="${contextPath}/generator/table/process.do" method="POST" role="form" class="form-horizontal" id="generatorForm">
		<div class="row">
				<div class="col-lg-6">
					<div class="form-group">
						<label for="firstname" class="col-sm-4 control-label">sql类型：</label>
						<div class="col-sm-8">
							<select id="sqlType" name="sqlType" class="form-control input-240" >
								<option value="1" >建表语句(create)</option>
								<option value="2" >查询语句(select)</option>
							</select>
							<span class="xd-ok hide"><i></i></span>
							<span class="xd-err hide"><i></i>错误提示</span>
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-sm-4 control-label">代码作者：</label>
						<div class="col-sm-8">
							<input id="auther"  name="auther" class="form-control input-240" >
							<span class="xd-ok hide"><i></i></span>
							<span class="xd-err hide"><i></i>错误提示</span>
						</div>
					</div>
			 </div>
				
			<div class="col-lg-6">
					<div class="form-group">
						<label for="firstname" class="col-sm-4 control-label">package路径：</label>
						<div class="col-sm-8">
							<input id="packagePath"  name="packagePath" class="form-control input-240" >
							<span class="xd-ok hide"><i></i></span>
							<span class="xd-err hide"><i></i>错误提示</span>
						</div>
					</div>
			</div>
			<div class="col-lg-6">
					<div class="form-group">
						<label for="firstname" class="col-sm-4 control-label">命名空间 namespace：</label>
						<div class="col-sm-8">
							<input id="nameSpace"  name="nameSpace" class="form-control input-240" >
							<span class="xd-ok hide"><i></i></span>
							<span class="xd-err hide"><i></i>错误提示</span>
						</div>
					</div>
			</div>
		</div>
		<div class="form-group">
				<label for="firstname" class="col-sm-2 control-label">sql语句：</label>
				<div class="col-sm-10">
					<textarea id="sql" name="sql" style="width:830px;" rows="6"  class="form-control"></textarea>
					<span class="xd-ok hide"><i></i></span>
					<span class="xd-err hide"><i></i>错误提示</span>
				</div>
		</div>
	
		<div class="form-group">
			<div class="col-lg-offset-5 col-lg-7 col-md-offset-5 col-md-7 col-sm-offset-5 col-sm-7 col-xs-offset-5 col-xs-7 mt10">
				<button type="button" id="generatorFormSubmit" class="btn btn-primary">生成代码</button>
				<button type="button" onclick="window.history.go(-1)"  class="btn btn-default ml10">返回</button>
			</div>	
		</div>
</form>

	
	<script type="text/javascript">
        
             /**
             * 页面加载
             */
            $(document).ready(function(){
            
            	/**
                 * 修改提前还款手续费费率提交按钮
                 */
                $('#generatorFormSubmit').click(function () {
                	$("#generatorForm").submit();
               	});
            });
 		
 		 </script>
	
</body>
</html>